package com.storyroad.responseClasses;

/**
 * Fields of this class are used to store information about a story fragment. Instances of this class are sent to the
 * front-end to be used when listing the story fragments. Accumulating all the data in an object facilitates
 * transfer of data as well as receiving and processing it.
 */
public class StoryView {

	private String title;
	private String tags;
	private int s_id;
	private String user;
	private String summary;
	private double avgRating;
	private String userPicture;

	public StoryView(int s_id, String title, String tags, double avgRating) {
		this.s_id = s_id;
		this.title = title;
		this.tags = tags;
		this.avgRating = avgRating;
	}

	public int getS_id() {
		return s_id;
	}

	public void setS_id(int s_id) {
		this.s_id = s_id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public double getAvgRating() {
		return avgRating;
	}

	public void setAvgRating(double avgRating) {
		this.avgRating = avgRating;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getUserPicture() {
		return userPicture;
	}

	public void setUserPicture(String userPicture) {
		this.userPicture = userPicture;
	}

}
